		 **************************************************************
		 **															 **
		 ** Paper: Freedom of Foreign Movement and Human Trafficking **
		 **														     **
		 ** Authors: Sam R. Bell & Richard W. Frank 				 **
		 **															 **
		 ** Date: May 12, 2021										 **
		 **															 **
		 ** Task: Table A5-Results with 3P Index				 	 **
		 **															 **
		 **************************************************************
		  
								 
		clear
		version 16.1
		set seed 1234

		** Change working directory
		cd "~"
		 
		use "ht_merged.dta"		
		merge 1:1 ccode year using "ht_eba_ivs.dta"		
 		global IVs "gdp_ln pop_ln overall3p" 
 
 				
			*** 1. CIRI, 12km
			
			probit F.source fm W_fm_con12   $IVs , robust cluster (ccode) 
				
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store T3_1
			
			** 2. CIRI interaction, 12km
			
			probit F.source fm W_fm_con12  interact_W_C_f12 $IVs , robust cluster (ccode) 
				
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store T3_2
 
 
 			* 3. , V-DEM 12km

			probit F.source v2clfmove W_vfomov_con12  $IVs , robust cluster (ccode)
				 		
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store T3_3
			
			* 4. W interaction V-DEM 12km
			
			probit F.source v2clfmove W_vfomov_con12 interact_W_Vf12 $IVs , robust cluster (ccode)
				
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store T3_4

 
			 esttab T3_1 T3_2 T3_3 T3_4 using "tableA5_3p.csv", replace ///
					title(Table A5: 3p control variable, probit results) ///
					obslast label se nogaps scalars(N pr2)  star(* 0.05 ** 0.01 *** 0.001)  
					
